#include "analSemantic.h"
#include "Visitor.hpp"
#include "ErrorManager.h"
#include "AST.hpp"

VisitorSemantic* semanticAnalyzer;

void semanticConstructor(node_Program *program){
    semanticAnalyzer = new VisitorSemantic();
    program->acceptVisitor(semanticAnalyzer);
}

void semanticDestructor(){
    delete semanticAnalyzer;
}
